package com.zh.streamdemo.demo1;

import java.util.stream.Stream;

public class DemoConcat {

    public static void main(String[] args) {
        Stream<String> s1 = Stream.of("java", ".net");
        Stream<String> s2 = Stream.of("python", "php", "c++");
        Stream.concat(s1, s2).forEach(System.out::println);
    }
}
